package com.example.victory.service;

import com.example.victory.swagger.model.ApiResponseCustomerStatus;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;


@Service
@FeignClient(name = "inner-business-customer", path = "api/v1", url = "${app.mvp.login.url:https://devfintech.cgws.com:8443/mvp-login}")
public interface CustomerStatusService{

    @RequestMapping(value = "/cczqCustomer/customer/{customerId}/cust_info",
            method = RequestMethod.GET)
    ResponseEntity<ApiResponseCustomerStatus> getCRMCustomerStatus(@ApiParam(value = "",required=true) @PathVariable("customerId") String customerId);
}
